/* 鼠标滑过提示文本 */
class hoverText{
    constructor(){
        this.restrict = 'A';
    }

    link(scope, element, attrs, controller) {
        element.on({
            'mouseenter': () => {
                element.attr('aria-label', '复制链接')
            },
            'mouseleave': () => {
                element.attr('aria-label', '复制链接')
            },
            'click': () => {
                element.attr('aria-label', '复制成功')
            }
        })
    }
} 

export default hoverText;